home *** CD-ROM | disk | FTP | other *** search
Makefile | 1996-02-24 | 1.7 KB | 79 lines |
- # $Header: /home/amb/cxref/cpp/RCS/Makefile 1.6 1996/02/24 14:50:32 amb Exp $
- #
- # C Cross Referencing & Documentation tool. Version 1.0
- #
- # CPP Makefile.
- #
- # Written by Andrew M. Bishop
- #
- # This file Copyright 1995,96 Andrew M. Bishop
- # It may be distributed under the GNU Public License, version 2, or
- # any higher version. See section COPYING of the GNU Public license
- # for conditions under which this file may be redistributed.
- #
-
- OBJ_FILES=cccp.o cexp.o version.o
-
- # Read the README file for a description of these.
- # For me using i486 Linux
- INCLUDE_DIR1=/usr/local/include
- INCLUDE_DIR2=/usr/i486-linux/include
- INCLUDE_DIR3=/usr/lib/gcc-lib/i486-linux/2.5.8/include
-
- # For me using sparc SunOS 4.1
- #INCLUDE_DIR1=/usr/local/include
- #INCLUDE_DIR2=/valid/gnu/gcc-2.6.3/lib/gcc-lib/sparc-sun-sunos4.1.3/2.6.3/include
- #INCLUDE_DIR3=/valid/gnu/gcc-2.6.3/sparc-sun-sunos4.1.3/include
-
- # For me using sparc Solaris 2.3
- #INCLUDE_DIR1=/usr/local/include
- #INCLUDE_DIR2=/home/gnu/gcc-2.5.7/sparc-sun-solaris/include
- #INCLUDE_DIR3=/home/gnu/gcc-2.5.7/lib/gcc-lib/sparc-sun-solaris/2.5.7/include
-
- INCLUDES=-Iconfig
- LIB=
-
- CC=gcc
- CFLAGS=-O2
-
- COMPILE=$(CC) -c $(CFLAGS)
-
- LINK=$(CC)
-
- YACC=bison -y
-
- ########
-
- cxref-cpp : $(OBJ_FILES)
- $(LINK) $(OBJ_FILES) -o $@ $(LIB)
-
- ########
-
- cexp.c : cexp.y
- $(YACC) $<
- @mv y.tab.c cexp.c
-
- ####
-
- cccp.o: cccp.c config.h tm.h pcp.h
- $(COMPILE) -w $< -o $@ $(INCLUDES) \
- -DLOCAL_INCLUDE_DIR=\"$(INCLUDE_DIR1)\" \
- -DTOOL_INCLUDE_DIR=\"$(INCLUDE_DIR2)\" \
- -DGCC_INCLUDE_DIR=\"$(INCLUDE_DIR3)\" \
- -DGPLUSPLUS_INCLUDE_DIR=\".\"
-
- ####
-
- %.o:%.c
- $(COMPILE) -w $< -o $@ $(INCLUDES)
-
- version.o : version.c
- cexp.o : cexp.c config.h tm.h
-
- ########
-
- clean :
- -rm -f core *.o *~ y.tab.c
-
- ########
-